import request from '@/utils/request';

export async function getProductBomOverviewByPage (params: any) {
    return request('/api/design/getProductBomOverviewByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addProductBomOverview (params: any) {
    return request('/api/design/addProductBomOverview', {
    method: 'POST',
    data: params,
  });
}

export async function updateProductBomOverview (params: any) {
    return request('/api/design/updateProductBomOverview', {
    method: 'POST',
    data: params,
  });
}

export async function delProductBomOverview (params: any) {
    return request('/api/design/delProductBomOverview', {
    method: 'POST',
    data: params,
  });
}


export async function exportProductBomOverview(params: any) {
    return request('/api/design/exportProductBomOverview', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getProductBomOverviewByPage, addProductBomOverview, updateProductBomOverview, delProductBomOverview, exportProductBomOverview }
